home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Sample Code / Printing Samples / Extensions… / Additions Source / Additions.make < prev    next >
Encoding:
Text File  |  1993-07-31  |  4.8 KB  |  148 lines  |  [TEXT/MPS ]

  1. # ------------------------------------------------------------------------------
  2. #
  3. #    FILENAME
  4. #        Additions.make
  5. #
  6. #    DESCRIPTION
  7. #        This is the make file for the Additions printing extension.
  8. #
  9. #    COPYRIGHT
  10. #        Copyright Apple Computer, Inc. 1991-1992
  11. #        All rights reserved. 
  12. #    
  13. #    MODIFICATION HISTORY
  14. #        05/15/91            ALA            Initial implementation
  15. #        10/22/92            Duano        Added changes for version control
  16. #
  17. #
  18. #-------------------------------------------------------------------------------
  19.  
  20.  
  21. #========== Directories Containing Source and Object Files ==========
  22.  
  23. SourceFiles        = "{Additions}"
  24. Objects            = "{Additions}Objects:"
  25.  
  26.  
  27. #========== Compile, Assemble, and Link Options ==========
  28.  
  29. AsmOptions        = -sym off -i {PrintingInterfaces} -case obj
  30. CompileOptions    = -mbg full -sym off  -opt full -b2 -r -i {PrintingInterfaces} -i {GraphicsInterfaces} -i {SourceFiles}
  31. RezOptions        = -s {PrintingInterfaces} -i {PrintingInterfaces} -d SystemSevenOrLater=1 {RIncludes}SysTypes.r  {RIncludes}Types.r    {PrintingInterfaces}PrintingResTypes.r -i {SourceFiles}
  32.  
  33.  
  34. #========== Files to Link With ==========
  35.  
  36. CObjs            =    "{Objects}Additions.a.o"             ∂
  37.                     "{Objects}Additions.c.o"            ∂
  38.                     "{Objects}InitializeMessage.c.o"    ∂
  39.                     "{Objects}DespoolPageMessage.c.o"    ∂
  40.                     "{Objects}FinishJobMessage.c.o"        ∂
  41.                     "{Objects}PrintDialogMessage.c.o"    ∂
  42.                     "{Objects}RenderPageMessage.c.o"    ∂
  43.                     "{Objects}StartJobMessage.c.o"        ∂
  44.                     "{Objects}Utilities.c.o"            ∂
  45.                     ∂
  46.                     "{GraphicsLibrary}"                    ∂
  47.                     {CLibraries}StdCLib.o                ∂
  48.                     {Libraries}Runtime.o                ∂
  49.                     {Libraries}Interface.o
  50.  
  51.  
  52. #========== Assembly Build Statements - Additions.a ==========
  53.  
  54. {Objects}Additions.a.o    ƒ    {SourceFiles}Additions.a
  55.     Echo "Assembling Additions.a"
  56.     Asm {AsmOptions}  {SourceFiles}Additions.a -o {Objects}Additions.a.o
  57.  
  58.  
  59. #========== Compile Build Statements - Additions.c ==========
  60.  
  61. {Objects}Additions.c.o    ƒ    {SourceFiles}Additions.c            ∂
  62.                                     {SourceFiles}Additions.h    ∂
  63.                                     {SourceFiles}Utilities.h
  64.     Echo "Compiling Additions.c"
  65.     C {CompileOptions} {SourceFiles}Additions.c  -o {Objects}Additions.c.o
  66.  
  67.  
  68. #========== Compile Build Statements - InitializeMessage.c ==========
  69.  
  70. {Objects}InitializeMessage.c.o    ƒ    {SourceFiles}InitializeMessage.c    ∂
  71.                                     {SourceFiles}Additions.h
  72.     Echo "Compiling InitializeMessage.c"
  73.     C {CompileOptions} {SourceFiles}InitializeMessage.c  -o {Objects}InitializeMessage.c.o
  74.  
  75.  
  76. #========== Compile Build Statements - DespoolPageMessage.c ==========
  77.  
  78. {Objects}DespoolPageMessage.c.o    ƒ    {SourceFiles}DespoolPageMessage.c    ∂
  79.                                     {SourceFiles}Additions.h            ∂
  80.                                     {SourceFiles}Utilities.h        
  81.     Echo "Compiling DespoolPageMessage.c"
  82.     C {CompileOptions} {SourceFiles}DespoolPageMessage.c  -o {Objects}DespoolPageMessage.c.o
  83.  
  84.  
  85. #========== Compile Build Statements - FinishJobMessage.c ==========
  86.  
  87. {Objects}FinishJobMessage.c.o    ƒ    {SourceFiles}FinishJobMessage.c        ∂
  88.                                     {SourceFiles}Additions.h            ∂
  89.                                     {SourceFiles}Utilities.h        
  90.     Echo "Compiling FinishJobMessage.c"
  91.     C {CompileOptions} {SourceFiles}FinishJobMessage.c  -o {Objects}FinishJobMessage.c.o
  92.  
  93.  
  94. #========== Compile Build Statements - PrintDialogMessage.c ==========
  95.  
  96. {Objects}PrintDialogMessage.c.o    ƒ    {SourceFiles}PrintDialogMessage.c    ∂
  97.                                     {SourceFiles}Additions.h            ∂
  98.                                     {SourceFiles}Utilities.h        
  99.     Echo "Compiling PrintDialogMessage.c"
  100.     C {CompileOptions} {SourceFiles}PrintDialogMessage.c  -o {Objects}PrintDialogMessage.c.o
  101.  
  102.  
  103. #========== Compile Build Statements - RenderPageMessage.c ==========
  104.  
  105. {Objects}RenderPageMessage.c.o    ƒ    {SourceFiles}RenderPageMessage.c    ∂
  106.                                     {SourceFiles}Additions.h            ∂
  107.                                     {SourceFiles}Utilities.h        
  108.     Echo "Compiling RenderPageMessage.c"
  109.     C {CompileOptions} {SourceFiles}RenderPageMessage.c  -o {Objects}RenderPageMessage.c.o
  110.  
  111.  
  112. #========== Compile Build Statements - StartJobMessage.c ==========
  113.  
  114. {Objects}StartJobMessage.c.o    ƒ    {SourceFiles}StartJobMessage.c    ∂
  115.                                     {SourceFiles}Additions.h        ∂
  116.                                     {SourceFiles}Utilities.h        
  117.     Echo "Compiling StartJobMessage.c"
  118.     C {CompileOptions} {SourceFiles}StartJobMessage.c  -o {Objects}StartJobMessage.c.o
  119.  
  120.  
  121. #========== Compile Build Statements - Utilities.c ==========
  122.  
  123. {Objects}Utilities.c.o    ƒ    {SourceFiles}Utilities.c        ∂
  124.                             {SourceFiles}Additions.h        ∂
  125.                             {SourceFiles}Additions.h    
  126.     Echo "Compiling Utilities.c"
  127.     C {CompileOptions} {SourceFiles}Utilities.c  -o {Objects}Utilities.c.o
  128.  
  129.  
  130. #========== Link and Rez Build Statements ==========
  131.  
  132. {TargetDir}Additions ƒ        {CObjs}                            ∂
  133.                                     {SourceFiles}Additions.r        ∂
  134.                                     {SourceFiles}Additions.make
  135.     Echo "Linking Additions Printing Extension"
  136.     Link    -ra =resSysHeap,resPurgeable ∂
  137.             -t 'pext'            ∂
  138.             -c 'addi'            ∂
  139.             -rt pext=0            ∂
  140.             -sg Additions        ∂
  141.             -m AdditionsIntf    ∂
  142.             {CObjs}                ∂
  143.             -o {TargetDir}Additions;
  144.     SetFile {TargetDir}Additions -a IB;
  145.     Echo "Rezzing Additions Printing Extension"
  146.     Rez {RezOptions} -rd -o {TargetDir}Additions {SourceFiles}Additions.r -append
  147.     MakeVersResource {Targ}
  148.